#ifndef Singleton_H
#define Singleton_H
#include "qmybaseformwidget.h"
#include <QDateTime>

#include <QStringList>


class Singleton 
{
public: 
	typedef struct 
	{
		QDateTime fakturaData;
		QDateTime fakturaValuta;
		float iznos;
		float plateno;
		QString komintent_naziv;
		QString komintent_id;
	} tinfoFakturi;

	typedef std::vector<tinfoFakturi> tListInfoFakturi;
    static Singleton* Instance();
	int getUserID(){return m_user_id;}
	void setUserID(int userID){ m_user_id = userID;}
	QStringList getUserInfo(){return m_infoVraboten;}
	void setUserInfo(QStringList infoVraboten){ m_infoVraboten = infoVraboten;}
	tListInfoFakturi m_listFakturiS; 
protected: 
	//Singleton();
private:
	int m_user_id;
	QStringList m_infoVraboten;
	static Singleton* _instance;
};
#endif // Singleton_H